package text;

import java.io.*;

public class Text03 {
    public static void main(String[] args) throws IOException {
       File dir = new File("./src/main/java/io");
        File[] subs = dir.listFiles(f->f.getName().endsWith(".java"));
        for(int i=0;i<subs.length;i++){
            File sub = subs[i];
            BufferedReader br = new BufferedReader(
                    new InputStreamReader(
                            new FileInputStream(sub)
                    )
            );
            String line;
            while ((line=br.readLine())!=null){
                System.out.println(line);
            }
            br.close();
        }


    }
}
